<!DOCTYPE html>
<%@ page import="com.cgah.Bid" %>
<%@ page import="com.cgah.Customer" %>
<%@ page import="com.cgah.Listing" %>
<html>
<head>

    <title><g:layoutTitle default="Grails"/></title>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}"/>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'homepage.css')}"/>
    <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>

    <g:set var="bidEntityName" value="${message(code: 'bid.label', default: 'Bid')}"/>
    <g:set var="customerEntityName" value="${message(code: 'customer.label', default: 'Customer')}" />

    <g:layoutHead/>
    <g:javascript library="application"/>
</head>
<body>
<div id="spinner" class="spinner" style="display:none;">
    <img src="${resource(dir: 'images', file: 'spinner.gif')}" alt="${message(code: 'spinner.alt', default: 'Loading...')}"/>
</div>
<div id="grailsLogo"><a href="http://grails.org"><img src="${resource(dir: 'images', file: 'grails_logo.png')}" alt="Grails" border="0"/></a></div>
<div id="nav">
    <div class="homePagePanel">
        <div class="panelTop"></div>
        <div class="panelBody">
            <h1>Oh Yeah We are OP</h1>
        </div>
        <div class="panelBody">
            <ul>
                %{--
                                        <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
                                        <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
                --}%
                <li class="controller">
                    <span class="menuButton">
                        <a class="home" href="${createLink(uri: '/')}">
                            <g:message code="default.home.label"/>
                        </a>
                    </span>
                </li>

                <li class="controller">
                    <span class="menuButton">
                        <g:link class="list" controller="bid" action="list">
                            %{--<g:message code="default.list.label" args="[entityName]"/>--}%
                            <g:message code="default.list.label" args="[bidEntityName]"/>
                        </g:link>
                    </span>
                </li>

                 <li class="controller">
                    <span class="menuButton">
                        <g:link class="list" controller="customer" action="list">
                            %{--<g:message code="default.list.label" args="[entityName]"/>--}%
                            <g:message code="default.list.label" args="[customerEntityName]"/>
                        </g:link>
                    </span>
                </li>


                %{--<g:each var="c" in="${grailsApplication.controllerClasses.sort { it.shortName } }">--}%
                %{--<li class="controller"><g:link controller="${c.logicalPropertyName}">${c.shortName}</g:link></li>--}%
                %{--</g:each>--}%



                %{--<li>App version: <g:meta name="app.version"></g:meta></li>--}%
                %{--<li>Grails version: <g:meta name="app.grails.version"></g:meta></li>--}%
                %{--<li>Groovy version: ${org.codehaus.groovy.runtime.InvokerHelper.getVersion()}</li>--}%
                %{--<li>JVM version: ${System.getProperty('java.version')}</li>--}%
                %{--<li>Controllers: ${grailsApplication.controllerClasses.size()}</li>--}%
                %{--<li>Domains: ${grailsApplication.domainClasses.size()}</li>--}%
                %{--<li>Services: ${grailsApplication.serviceClasses.size()}</li>--}%
                %{--<li>Tag Libraries: ${grailsApplication.tagLibClasses.size()}</li>--}%
            </ul>
            %{--<h1>Installed Plugins</h1>
            <ul>
                <g:set var="pluginManager"
                       value="${applicationContext.getBean('pluginManager')}"></g:set>

                <g:each var="plugin" in="${pluginManager.allPlugins}">
                    <li>${plugin.name} - ${plugin.version}</li>
                </g:each>

            </ul>--}%
        </div>
        <div class="panelBtm"></div>
    </div>
</div>


<g:layoutBody/>
</body>
</html>